package model;

public class Shopping_cart {
   int  cart_id;//'购物车的唯一标识',
    int user_id ;//外键引用user表',
   int  goods_id ;//'商品ID，外键引用goods表',
   int  quantity ;//INT DEFAULT 1 COMMENT '商品数量',
    String added_at ;//T'添加到购物车的时间',

    public Shopping_cart(int goodsId, int userId, int cartId, int quantity) {
        this.goods_id = goodsId;
        this.user_id = userId;
        this.cart_id = cartId;
        this.quantity = quantity;
    }
    public Shopping_cart() {

    }

    public int getCart_id() {
        return cart_id;
    }

    public void setCart_id(int cart_id) {
        this.cart_id = cart_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getAdded_at() {
        return added_at;
    }

    public void setAdded_at(String added_at) {
        this.added_at = added_at;
    }
}
